package controller

import (
	"github.com/gin-gonic/gin"
	"user/model"
	"user/utils"
)

func Info(c *gin.Context) {
	u, _ := c.Get("user")
	user := u.(*model.User)
	utils.Success(c, "获取成功", gin.H{
		"id":        user.ID,
		"telephone": user.Telephone,
		"username":  user.UserName,
	})
}
